package com.bdqn.sys.vo;


import com.bdqn.sys.entity.User;

import java.util.Set;

public class LoginUserVo{

    private User user; //用户名
    private Set<String> roles;//当前用户拥有的角色
    private Set<String> permissions;//当前登录用户拥有角色对应的相对权限



    //无参
    public LoginUserVo() {
    }
    //有参
    public LoginUserVo(User user, Set<String> roles, Set<String> permissions) {
        this.user = user;
        this.roles = roles;
        this.permissions = permissions;
    }



    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<String> permissions) {
        this.permissions = permissions;
    }
}
